package com.example.administrator.myapplication.activity;

import android.app.ProgressDialog;
import android.content.SharedPreferences;
import android.os.Bundle;

import com.example.administrator.myapplication.R;
import com.example.administrator.myapplication.tools.NetCallBackTxt;
import com.example.administrator.myapplication.tools.RequestUtils;
import com.loopj.android.http.RequestParams;
import com.sv.svbind.context.AppActivity;

public class ToolsActivity extends AppActivity {

    /**
     * 工具
     */
    private ProgressDialog pdDialog;
    private SharedPreferences shp;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tools);

        initView();
        initData();
    }

    private void initView() {
        pdDialog = new ProgressDialog(ToolsActivity.this);
        pdDialog.setMessage("正在加载，请稍候...");
        pdDialog.setCanceledOnTouchOutside(false);
    }

    private void initData() {
        String url="";
        RequestParams params = new RequestParams();
//        params.put("userId", userId);
        RequestUtils.ClientPost(url, params, new NetCallBackTxt() {

            @Override
            public void onMySuccess(String result) {


            }

            @Override
            public void onMyFailure(Throwable result) {

            }

            @Override
            public void onMyStart() {

            }
        });

    }
}
